﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace MediaLibraryManager.Win
{
	public partial class ThumbnailGenerator : UserControl
	{
		private DataGridViewRow row;

		public ThumbnailGenerator()
		{
			InitializeComponent();
		}

		public DataGridViewRow Row
		{
			get
			{
				return this.row;
			}
			set
			{
				this.row = value;

				if (autoPlay.Checked)
					this.wmp.URL = (string)this.row.Cells[this.row.DataGridView.Columns["FilePath"].Index].Value;
				else
					this.wmp.URL = string.Empty;
			}
		}
	}
}
